import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from 'typeorm';
import { EntityHelper } from 'src/utils/entity-helper';

@Entity()
export class Category extends EntityHelper {
	@PrimaryGeneratedColumn()
	id: number;

	@Column({ name: 'category_name', type: 'varchar' })
	categoryName!: string;

	@Column()
	creator!: string;

	@CreateDateColumn({ name: 'create_time' })
	createTime!: Date;

	@UpdateDateColumn({ name: 'update_time' })
	updateTime!: Date;
}
